Clone Project

Creates a new project by cloning configuration from an existing project.

POST{accelqLoginUrl}/awb/api/2.0/{tenantCode}/administration/projects/{pjPid}/clone

Headers

HeaderValue
user_idLogin username (email)
api_keyAPI key of the user for authentication
Content-Typeapplication/json
Acceptapplication/json

Parameters

ParameterTypeRequiredDescription
accelqLoginUrlstringYesThe AccelQ login URL for API access.
tenantCodestringYesTenant code for identifying the organization.
pjPidintegerYesThe ID of the project to clone.
user_idstringYesLogin username (email)
api_keystringYesAPI key of the user for authentication

Request Body

json
{
  "projectName": "Name of the cloned Project",
  "description": "Description for the cloned project",
  "branching": false
}

Responses

200 - Project cloned successfully

json
{
  "pid": 3,
  "projectDisplayName": "New Project",
  "projectCode": "NewProject",
  "description": "Description for the new project",
  "createdUserPid": 1,
  "createdTimestamp": 1728040036528
}

400 - Bad Request Error

json
{
  "error": "Project name validation failed: Cannot start with digit, max length 256, only alphabets, digits, spaces, and underscores allowed."
}

409 - Conflict - Project name already exists

json
{
  "error": "A project with the name 'New Project2' already exists."
}

422 - Project with specified PID not found

json
{
  "error": "Project with PID 2 not found."
}

cURL Command Builder

URL Parameters

Headers

Request Sample (cURL)

curl -X POST "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/administration/projects/${{pjPid}}/clone" \
  -H "user_id: ${{user_id}}" \
  -H "api_key: ${{api_key}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
  "projectName": "Name of the cloned Project",
  "description": "Description for the cloned project",
  "branching": false
}'